import Cookies from 'js-cookie'

const TokenKey = 'token'
const ManagerIdKey = 'managerId'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getManagerId() {
  return Cookies.get(ManagerIdKey)
}

export function setManagerId(managerId) {
  return Cookies.set(ManagerIdKey, managerId)
}

export function removeManagerId() {
  return Cookies.remove(ManagerIdKey)
}

export function setNikeName(nikeName){
	return sessionStorage.setItem("nikeName",nikeName)
}

export function removeNikeName(){
	return sessionStorage.removeItem("nikeName")
}

export function getNikeName(){
	return sessionStorage.getItem("nikeName")
}
